package fr.oz.mobile.module.profile.nav 
{
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.text.TextField;
	import fr.digitas.flowearth.text.styles.styleManager;
	/**
	 * ...
	 * @author Fazermokeur
	 */
	public class ProfilNavItemNameManager extends Sprite
	{
		
		private const DISPLAY_WIDTH		: int = 185;
		
		private var tf					: TextField;
		
		
		public function ProfilNavItemNameManager(value:String) 
		{
			addEventListener(Event.ADDED_TO_STAGE, init);
			
			tf = new TextField();
			styleManager.apply(tf, ".profile_module_pad_profil_name", value);
			addChild(tf);
			
			
		}
		
		private function init(e:Event):void 
		{
			removeEventListener(Event.ADDED_TO_STAGE, init);
			addEventListener(Event.REMOVED_FROM_STAGE, dispose);
		}
		
		private function dispose(e:Event):void 
		{
			removeEventListener(Event.REMOVED_FROM_STAGE, dispose);
			
			
		}
		
	}

}